<%-- 
    Document   : addAmbulance
    Created on : 28 Oct, 2012, 4:45:58 PM
    Author     : sagar
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="../common/script.jsp" %>
<!DOCTYPE html>
<script type="text/javascript">
    var rules=new Array();
    rules[0]='companyName|required|Please Enter Company Name';
    rules[1]='contact|required|Please Enter Contact No';
    rules[2]='contact|maxlength|10|please enter only 10 digit no';
    rules[3]='contact|mask|0123456789';
</script>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@include file="../common/title.jsp" %>

    </head>
    <body onLoad="yav.init('form1',rules,'inline');">
        <%@include file="../common/header.jsp" %>
        <%@include file="../common/menu.jsp" %>
        <div class="in_02">
            <%@include file="../common/message.jsp" %>
            <form:form id="form1" name="form1" modelAttribute="ambulance"  method="POST" >
                <fieldset>
                    <legend><spring:message code="title.addAmbulance"/></legend>
                    <table class="formTable">
                        <tr>
                            <td><spring:message code="companyName"/>:<br/>
                                <form:input path="companyName"  cssClass="userInputLarge"/><br/>
                                <span id="errorsDiv_companyName"></span><br/>
                            </td>
                        </tr>
                        <tr>
                            <td><spring:message code="contact1"/>:<br/>
                                <form:input path="contact1"  cssClass="userInputLarge"/><br/>
                                <span id="errorsDiv_contact1"></span><br/>
                            </td>

                            <td><spring:message code="contact2"/>:<br/>
                                <form:input path="contact2"  cssClass="userInputLarge"/><br/>
                                <span id="errorsDiv_contact2"></span><br/>
                            </td>

                            <td><spring:message code="contact3"/>:<br/>
                                <form:input path="contact3"  cssClass="userInputLarge"/><br/>
                                <span id="errorsDiv_contact3"></span><br/>
                            </td>
                        </tr>
                        <tr>
                            <td><spring:message code="notes"/>:<br/> 
                                <form:textarea path="notes" cssClass="userInputLarge"/><br/>
                            </td>
                        </tr>

                        <tr>
                            <td><input type="button" name="btnCancel" value="<spring:message code="button.Cancel"/>" onclick="location.href='../ambulance/listAmbulance.htm'" /></td>   
                            <td><input type="submit" name="btnSubmit" value="<spring:message code="button.Add"/>" onclick="return yav.performCheck('form1', rules, 'inline');"/></td>

                        </tr>
                    </table>
                </fieldset>
                <spring:hasBindErrors name="ambulance">  
                    <div class="error" >
                        <form:errors path="*"/>
                    </div>
                </spring:hasBindErrors>
            </form:form>
    </body>
</html>

